SCALE SPRITE

This command will expand or shrink the specified sprite according to the scale value provided.

  Syntax
SCALE SPRITE Sprite Number, Scale
  Parameters
Sprite Number
Integer
The sprite number
Scale
Float
If the scale value is zero, the sprite will disappear. If the scale value is 100, the sprite will be set to its original size. If the scale value is set to 200, the size of the sprite will double

  Returns

This command does not return a value.

  Description

If the scale value is zero, the sprite will disappear. If the scale value is 100, the sprite will be set to its original size. If the scale value is set to 200, the size of the sprite will double. The parameters should be specified using integer values.

  Example Code
cls
load image "man.bmp",1
sprite 1,100,100,1
wait 1000*8
scale=200
scale sprite 1,scale
do
loop
end
  See also

SPRITE Commands Menu
Index